//
//  CourseAction.m
//  Courses
//
//  Created by xxx on 15/1/5.
//  Copyright (c) 2015年 wtf. All rights reserved.
//

#import "CourseAction.h"
#import "Request.h"

@implementation CourseAction

+ (NSArray *)courseActions
{
    NSMutableArray *courseActions = [[NSMutableArray alloc] init];
    Request *request = [Request requestWithName:@"action"];
    Response *res = [request response];
    for (id courseActionJson in res.content)
    {
        CourseAction *courseAction = [[CourseAction alloc] init];
        courseAction.photoURLStr = courseActionJson[@"photoURL"];
        courseAction.actionURLStr = courseActionJson[@"actionURL"];
        [courseActions addObject:courseAction];
    }
    
    return [courseActions copy];
}

@end
